package homework5;

public class Chapter05 {
    public static void main(String[] args) {
        double arr[]={1,2,3,4,5,6,7,8};
        double c=1;
        for (int i=1;i<arr.length;i++){
            c=c*arr[i];
        }
        System.out.println("乘积为"+c);
        /*for (double j:arr)
        System.out.println(j);*/
    }
}
